package org.springcloud.plugin.framework.listener.loadbalance;

import com.netflix.loadbalancer.Server;
import org.springcloud.plugin.framework.listener.Listener;

import java.util.List;

/**
 * author: yanggld
 * date: 2019/12/14 18:50
 * version: 1.0
 * description: LoadBalanceListener
 */
public interface LoadBalanceListener extends Listener {
    /**
     * @param serviceId  服务提供者name
     * @param servers  服务提供者列表
     */
    void onGetServers(String serviceId, List<? extends Server> servers);
}
